﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Principal;

namespace BOMS.Utility
{
    public class FormsIdentity : IIdentity
    {
        private string _userName;
        public FormsIdentity(string userName)
        {
            _userName = userName;
        }

        #region IIdentity

        public string AuthenticationType
        {
            get
            {
                return "Forms";
            }
        }

        public bool IsAuthenticated
        {
            get
            {
                return true;
            }
        }

        public string Name
        {
            get
            {
                return _userName;
            }
        }

        #endregion
    }
}
